package com.aier.user.entity;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

import com.aier.common.common.Constant;

/**
 * 新鲜事收藏表
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "fresh_favorite", catalog = "abc")
public class FreshFavorite implements java.io.Serializable {

    // 标识
    private Long ffid;
    // 用户id
    private Long fuid;
    // 新鲜事id
    private Long fid;
    // 创建时间
    private Timestamp cdate;
    
    // 新鲜事内容
    private Fresh fresh;

    // Constructors

    /** default constructor */
    public FreshFavorite() {
    }

    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "ffid", unique = true, nullable = false)
    public Long getFfid() {
        return this.ffid;
    }

    public void setFfid(Long ffid) {
        this.ffid = ffid;
    }
    @Column(name = "fuid", nullable = false, length = Constant.num_20)
    public Long getFuid() {
        return fuid;
    }

    public void setFuid(Long fuid) {
        this.fuid = fuid;
    }
    @Column(name = "fid", nullable = false, length = Constant.num_20)
    public Long getFid() {
        return fid;
    }

    public void setFid(Long fid) {
        this.fid = fid;
    }
    @Column(name = "cdate")
    public Timestamp getCdate() {
        return cdate;
    }

    public void setCdate(Timestamp cdate) {
        this.cdate = cdate;
    }

    public Fresh getFresh() {
        return fresh;
    }

    public void setFresh(Fresh fresh) {
        this.fresh = fresh;
    }

}